import org.apache.commons.lang.StringUtils;


public class CommonsLang
{
	public static void main(String[] args)
	{
		String ssn = "001223450";
		String ssnStripped = StringUtils.stripStart(ssn, "0");
		System.out.println("ssn " + ssn + " is numeric? " + StringUtils.isNumeric(ssn));		
		System.out.println("ssn stripped: " + ssnStripped);
		
		ssn = "0";
		ssnStripped = StringUtils.stripStart(ssn, "0");
		System.out.println("ssn " + ssn + " contains only '0' char? " + StringUtils.containsOnly(ssn, "0"));
		System.out.println("ssn " + ssn + " is numeric? " + StringUtils.isNumeric(ssn));		
		System.out.println("ssn stripped: " + ssnStripped);
		
		ssn = "00";
		ssnStripped = StringUtils.stripStart(ssn, "0");
		System.out.println("ssn " + ssn + " contains only '0' char? " + StringUtils.containsOnly(ssn, "0"));
		System.out.println("ssn " + ssn + " is numeric? " + StringUtils.isNumeric(ssn));		
		System.out.println("ssn stripped: " + ssnStripped);
		
		String ssnBeforePad = "123";
		String ssnAfterPad = StringUtils.leftPad(ssnBeforePad, 9, '0');
		System.out.println("ssn before padding: " + ssnBeforePad);
		System.out.println("ssn after padding : " + ssnAfterPad);
		
		
		
	}
}
